<template>
  <div class="bg">
    <div class="w-[120px] bg-[#2f4553] rounded-3xl overflow-hidden">
      <div class="loader"></div>
    </div>
  </div>
</template>
<style lang="less" scoped>
.bg {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  height: 100%;
  background-color: #1a2c38;
}
/* HTML: <div class="loader"></div> */
.loader {
  width: 12px;
  aspect-ratio: 1;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 60px 10px #fff;
  transform: translate(0px);
  clip-path: inset(0);
  animation:
    l4-1 0.5s ease-in-out infinite alternate,
    l4-2 1s ease-in-out infinite;
}
@keyframes l4-1 {
  100% {
    transform: translateX(110px);
  }
}
@keyframes l4-2 {
  33% {
    clip-path: inset(0 0 0 -100px);
  }
  50% {
    clip-path: inset(0 0 0 0);
  }
  83% {
    clip-path: inset(0 -100px 0 0);
  }
}
</style>
